package com.pc.service;

import com.pc.enrty.ShoppingAddress;

import java.util.ArrayList;

public interface ShoppingAddressService {
    /**
     * 根据uid查找收货地址
     * @return ShoppingAddress
     */
    ArrayList<ShoppingAddress> findByUid(ShoppingAddress shoppingAddress);

    /**
     * 添加收货地址
     * @param shoppingAddress
     * @return ==1?true:false
     */
    boolean addShoppingAddress(ShoppingAddress shoppingAddress);

    /**
     * 根据uid修改收货地址
     * @param shoppingAddress
     * @return ==1?true:false
     */
    boolean updateShoppingAddress(ShoppingAddress shoppingAddress);

    /**
     * 根据id查询出对应的地址
     * @param shoppingAddress 尽量保存id
     * @return 返回地址
     */
    ArrayList<ShoppingAddress> findById(ShoppingAddress shoppingAddress);

    ArrayList<ShoppingAddress> findId(ShoppingAddress shoppingAddress);
}
